<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
<style>
.error {
    color: #ff0000;
    font-style: normal;
    font-weight: bold;
}

#lewa {
    margin  : 0px;
    border  : none;
    padding : 10px;
    width   : 530px;
    float   : left;
}

#prawa {
    margin  : 0px;
    border  : none;
    padding : 10px;
    width   : 660px;
    float   : right;
}
#center {
    margin  : 30px;
    border  : none;
    padding : 200px;
    width   : 660px;
    float   : center;
}

</style>
</head>
<body bgcolor="#F5F4DA">
<h1>Zarejestruj sie </h1>
<h3>Po poprawnej rejestracji zostaniesz przekierowany na strone glowna aby dokonac pierwszego logowania do systemu </h3>
    <form:form method="post" action="add" commandName="employee">
        <div id="lewa">
        <table>
        <tr>
            <td><form:label path="username"><spring:message code="label.username"/></form:label></td>
            <td><form:input path="username" /></td>
            <td><form:errors path="username" cssClass="error" /></td>
        </tr>
        <tr>
            <td><form:label path="password"><spring:message code="label.password"/></form:label></td>
            <td><form:input path="password" /></td>
            <td><form:errors path="password" cssClass="error" /></td>
        </tr>
        <tr>
            <td><form:label path="firstname"><spring:message code="label.firstname"/></form:label></td>
            <td><form:input path="firstname" /></td>
            <td><form:errors path="firstname" cssClass="error" /></td>
        </tr>
         <tr>
            <td><form:label path="lastname"><spring:message code="label.lastname"/></form:label></td>
            <td><form:input path="lastname" /></td>
            <td><form:errors path="lastname" cssClass="error" /></td>
        </tr>
        <tr>
    		<td>Plec</td>
    		<td><form:select path="sex">
                        <form:option value="M" label="Mezczyzna" />
                        <form:option value="K" label="Kobieta" />
                </form:select></td>
		</tr>
		<tr>
			<td>Miejsce urodzenia</td>            
			<td><form:input path="birthplace" /></td>
            <td><form:errors path="birthplace" cssClass="error" /></td>
        </tr>
		<tr>
               <td>Data urodzenia</td>
               <td><form:input path="birthday" placeholder="MM/dd/yyyy"/></td>
               <td><form:errors path="birthday" cssClass="error" /></td>
        </tr>
        </table> 
        </div>
        <div id="prawa">
        <table>
       
        <tr>
            <td><form:label path="email"><spring:message code="label.email"/></form:label></td>
            <td><form:input path="email" /></td>
            <td><form:errors path="email" cssClass="error" /></td>
        </tr>
        <tr>
            <td><form:label path="telephone"><spring:message code="label.telephone"/></form:label></td>
            <td><form:input path="telephone" /></td>
            <td><form:errors path="telephone" cssClass="error" /></td>
        </tr>
        <tr>
            <td><form:label path="pesel"><spring:message code="label.pesel"/></form:label></td>
            <td><form:input path="pesel" /></td>
            <td><form:errors path="pesel" cssClass="error" /></td>
        </tr>
        <tr>
        	<td>Liceum</td>
            <td><form:input path="school" /></td>
            <td><form:errors path="school" cssClass="error" /></td>
        </tr>
        <tr>
    		<td>Kierunek</td>
    		<td><form:select path="direction">
                        <form:option value="informatyka" label="informatyka" />
                        <form:option value="zarzadzanie" label="zarzadzanie" />
                        <form:option value="mechanika" label="mechanika" />
                        <form:option value="budownictwo" label="budownictwo" />
                        <form:option value="mechatronika" label="mechatronika" />
                        
                </form:select></td>
		</tr>
       
        <tr>
        	<td>Matematyka (%)</td>
            <td><form:input path="first" /></td>
            <td><form:errors path="first" cssClass="error" /></td>
        </tr>
        <tr>
        	<td>Jezyk polski (%)</td>
            <td><form:input path="second" /></td>
            <td><form:errors path="second" cssClass="error" /></td>
        </tr>
        <tr>
        	<td>Przedmiot rozszerzony (%)</td>
            <td><form:input path="third" /></td>
            <td><form:errors path="third" cssClass="error" /></td>
        </tr>
        
    </table> 
    </div>
    	<div id="center">
    	<tr>
            <td colspan="2">
                <input type="submit" value="<spring:message code="label.add"/>"/>
            </td>
        </tr>
    </div>
    
    </form:form>


</body>
</html>